const api = {
  data () {
    return {
      SysDeptApi: {
        list: () => {
          return this.$http.get('/sys/dept/list')
        },
        find: (id) => {
          return this.$http.get(`/sys/dept/find?id=${id}`)
        },
        save: (data) => {
          return this.$http.postJson('/sys/dept/save', data)
        }
      }
    }
  }
}

export default api
